/*
 * @Author: Troubadour 2276791354@qq.com
 * @Date: 2024-03-20 13:35:14
 * @LastEditors: Troubadour 2276791354@qq.com
 * @LastEditTime: 2024-03-20 14:24:26
 * @Version:
 * @Description:
 */

#ifndef __SKU622_H__
#define __SKU622_H__


#include <stdint.h>


/* sku622 type. */
typedef struct
{
    uint16_t Self_id;       /* This device ID. */
    uint16_t Measure_id;    /* Tested device ID. */
    uint32_t Distance;      /* Measuring distance, uint is cm. */
    uint8_t UpDataFlag;     /* 1: Valid for 1 data */
}SKU622_TypeDef;


uint8_t SKU622_UnpackBuffer(uint8_t *DataBuff, uint16_t DataLen);
void SKU622_Init(void);
uint32_t SKU622_GetDis(void);





#endif  /* __SKU622_H__ */
